﻿package com.gamemeal.facebook {
	/**
	 * @author Colin
	 */
	public class Friends {
		public static function areFriends(api_key:String,session_key:String,call_id:String,uids1:Array,uids2:Array,v:String="1.0",format:String="",callback:String=""):Array{
			var a:Array = new Array();
			a['method']='facebook.friends.areFriends';
			a['api_key']=api_key;
			a['session_key']=session_key;
			a['call_id']=call_id;
			a['v']=v;
			a['uids1']=uids1.join(",");
			a['uids2']=uids2.join(",");

			if(format!="")a['format']=format;
			if(callback!="")a['callback']=callback;

			return a;
		}

		public static function get(api_key:String,session_key:String,call_id:Number,v:String="1.0",format:String="",callback:String=""):Array{
			var a:Array = new Array();
			a['method']='facebook.friends.get';
			a['api_key']=api_key;
			a['session_key']=session_key;
			a['call_id']=call_id;
			a['v']=v;

			if(format!="")a['format']=format;
			if(callback!="")a['callback']=callback;

			return a;
		}
		
		public static function getAppUsers(api_key:String,session_key:String,call_id:Number,v:String="1.0",format:String="",callback:String=""):Array{
			var a:Array = new Array();
			a['method']='facebook.friends.getAppUsers';
			a['api_key']=api_key;
			a['session_key']=session_key;
			a['call_id']=call_id;
			a['v']=v;

			if(format!="")a['format']=format;
			if(callback!="")a['callback']=callback;

			return a;
		}
		

	}
}